package com.wh.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wh.springboot.common.entity.CovidData;
import com.wh.springboot.common.entity.LineTrend;
import com.wh.springboot.mapper.CovidMapper;
import com.wh.springboot.service.CovidService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CovidServiceImpl extends ServiceImpl<CovidMapper, CovidData> implements CovidService {
    @Resource
//    @Autowired
    private CovidMapper covidMapper;
    @Override
    public List<LineTrend> findSevenDate() {
        List<LineTrend> list=covidMapper.findSevenDate();
        return list;
    }

    @Override
    public List<CovidData> listOrderbyLimit() {
        return covidMapper.listOrderbyLimit();
    }

}
